package com.example.xmh.business.reserve;

import com.example.xmh.utils.MateUtils;

public class BReserve {
    private static final String[] AREA = new String[]{"台湾","香港","澳门","大陆","新加坡","马来西亚"};
    private static final String[] CHANNEL = new String[]{"GooglePlay","AppStore"};

    public static boolean hasArea(String input){
        for (String s : AREA) {
            if (s.equals(input)) {
                return true;
            }
        }
        return false;
    }

    public static boolean hasChannel(String input){
        for (String s:CHANNEL){
            if(s.equals(input)){
                return true;
            }
        }
        return false;
    }

    public static String createReserveCode(){
        return MateUtils.generateReserve();
    }
}
